package com.markerhub.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 
 * </p>
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("m_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private Integer ticklistId;

    private LocalDateTime created;

    private Integer status;

    private Float price;

    private Integer tickId;

    private String qccode;

    //@JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime useTime;

    private Integer addressId;
    @NotBlank(message = "姓名不能为空")
    private String userReale;
    @NotBlank(message = "手机号不能为空")
    private String userPhone;

    private String userAddress;
    @NotBlank(message = "身份证不能为空")
    private String userIdcard;

    private String goodsstatus;

    private String refund;




}
